<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <div class="row">
      <div class="col-lg-12">
        <section class="panel">
          <header class="panel-heading">
            项目变更信息
          </header>
          <div class="panel-body">
              <div class="bio-row">
                  <p>
                      <span>变更项目：</span>{{projName}}</p>
              </div>

              <div class="bio-row" ng-show="proName">
                <p>
                  <span>项目名称</span>{{oldProName}}→{{mproName}}</p>
              </div>
              <div class="bio-row" ng-show="xsUser">
                <p>
                  <span>线索负责人</span>{{oldXsUserName}}→{{xsUserName}}</p>
              </div>
              <div class="bio-row" ng-show="selUser">
                <p>
                  <span>销售经理</span>{{oldSelUserName}}→{{selUserName}}</p>
              </div>
              <div class="bio-row" ng-show="mgUser">
                <p>
                  <span>项目经理</span>{{oldMgUserName}}→{{mgUserName}}
                </p>
              </div>
              <div class="bio-row" ng-show="delUser">
                <p>
                  <span>交付经理</span>{{oldDelUserName}}→{{delUserName}}</p>
              </div>
              <div class="bio-row" ng-show="pduUser">
                <p>
                  <span>产品经理 </span>{{oldPduUserName}}→{{pduUserName}}</p>
              </div>
              <div class="bio-row" ng-show="proState">
                  <p>
                      <span>项目状态 </span>{{oldModifyProState}}→{{modifyProState}}</p>
              </div>
              <div class="bio-row" ng-show="proLv">
                  <p>
                      <span>优先级 </span>{{oldModifyProLv}}→{{modifyProLv}}</p>
              </div>
              <div class="bio-row" ng-show="urgency">
                <p>
                  <span>紧急性 </span>{{oldModifyUrgency}}→{{modifyUrgency}}</p>
              </div>
              <div class="bio-row" ng-show="importance">
                <p>
                  <span>重要性 </span>{{oldModifyImportance}}→{{modifyImportance}}</p>
              </div>
              <div class="bio-row" ng-show="signDate">
                <p>
                  <span>预签单日期 </span>{{oldProSignDate | date:'yyyy-MM-dd'}}
                    →{{proSignDate | date:'yyyy-MM-dd'}}
                </p>
              </div>
              <!--<div class="bio-row" ng-if="showFinish">-->
                <!--<p>-->
                  <!--<span>预计完成日期 </span>{{divineFinishTime | date:'yyyy-MM-dd'}}</p>-->
              <!--</div>-->
              <div class="bio-row" ng-show="hkDate">
                <p>
                  <span>预回款日期 </span>{{oldProHkDate | date:'yyyy-MM-dd'}}
                    →{{proHkDate | date:'yyyy-MM-dd'}}
                </p>
              </div>
              <div class="bio-row" ng-show="proTime">
                <p>
                  <span>项目周期 </span>{{oldModifyBeginTime | date:'yyyy-MM-dd'}}至{{oldModifyEndTime | date:'yyyy-MM-dd'}}
                    →
                    {{modifyBeginTime | date:'yyyy-MM-dd'}}至{{modifyEndTime | date:'yyyy-MM-dd'}}
                </p>
              </div>
              <div class="bio-row" ng-show="smoney">
                <p>
                    <span>销售额 </span>{{oldSelMoney}}→{{selMoney}}</p>
              </div>
              <div class="bio-row" ng-show="ymoney">
                  <p>
                      <span>客户预算 </span>{{oldYsMoney}}→{{ysMoney}}</p>
              </div>
              <div class="bio-row" ng-show="deptId">
                  <p>
                      <span>所属部门 </span>{{oldModifyDeptId}}→{{modifyDeptId}}</p>
              </div>
              <div class="bio-row" ng-show="proArea">
                  <p>
                      <span>项目区域 </span>{{oldModifyArea}}→{{modifyArea}}</p>
              </div>
              <div class="bio-row" ng-show="cusId">
                  <p>
                      <span>客户名称 </span>{{oldModifyCusId}}→{{modifyCusId}}</p>
              </div>
              <div class="bio-row" ng-show="pdLine">
                  <p>
                      <span>产品线 </span>{{oldModifyPdLine}}→{{modifyPdLine}}</p>
              </div>
              <div class="bio-row" ng-show="compare">
                  <p>
                      <span>比拼类测试 </span>{{oldModifyCompare}}→{{modifyCompare}}</p>
              </div>
              <div class="bio-row line-row" ng-show="clues">
                <p>线索价值点描述</p>
                <p>{{oldModifyClue}}</p> →
                <p>{{modifyClue}}</p>
              </div>
              <div class="bio-row line-row" ng-show="ompetitor">
                  <p>竞争信息</p>
                  <p>{{oldModifyCompetitor}}</p> →
                  <p>{{modifyCompetitor}}</p>
              </div>

              <div class="bio-row line-row" ng-show="cusPolicy">
                  <p>决策链和关键描述</p>
                  <p>{{oldModifyCusPolicy}}</p> →
                  <p>{{modifyCusPolicy}}</p>
              </div>

              <div class="bio-row line-row">
                <p>变更说明</p>
                <p>{{changeMessage}}</p>
              </div>
            </div>
          
        </section>
        <section class="panel">
          <div class="panel-body">
              <p class="default-buttons">
                  <a href="javascript:void(0);" class="button-next btn btn-info" onclick="window.history.back()">返回</a>
                </p>
          </div>
        </section>
      </div>
    </div>
  </section>
</section>
  <!-- 当前页面js文件引入 -->
<script type="text/javascript">
    function findDetail($scope, CertusFormAjax, $routeParams) {
        CertusFormAjax.ajax('findLastModify',{"stepId":$routeParams.stepId},function (response) {
            var data = response.data.bgInfos;
            $scope.projName = response.data.projName;

            if (data.modifyProName!=undefined){
                $scope.proName = true;
                $scope.oldProName = data.oldProName;
                $scope.mproName = data.modifyProName;
            }
            if (data.xsUserName!=undefined){
                $scope.xsUser = true;
                $scope.oldXsUserName = data.oldXsUserName;
                $scope.xsUserName = data.xsUserName;
            }
            if (data.selUserName!=undefined){
                $scope.selUser = true;
                $scope.oldSelUserName = data.oldSelUserName;
                $scope.selUserName = data.selUserName;
            }
            if (data.mgUserName!=undefined){
                $scope.mgUser = true;
                $scope.oldMgUserName = data.oldMgUserName;
                $scope.mgUserName = data.mgUserName;
            }
            if (data.delUserName!=undefined){
                $scope.delUser = true;
                $scope.oldDelUserName = data.oldDelUserName;
                $scope.delUserName = data.delUserName;
            }
            if (data.pduUserName!=undefined){
                $scope.pduUser = true;
                $scope.oldPduUserName = data.oldPduUserName;
                $scope.pduUserName = data.pduUserName;
            }
            if (data.modifyProState!=undefined){
                $scope.proState = true;
                if (data.oldModifyProState=="1"){
                    $scope.oldModifyProState = "运行中";
                }else if (data.oldModifyProState=="2"){
                    $scope.oldModifyProState = "已关闭";
                }else if (data.oldModifyProState=="3"){
                    $scope.oldModifyProState = "已完结";
                }else if (data.oldModifyProState=="4"){
                    $scope.oldModifyProState = "已暂停";
                }

                if (data.modifyProState=="1"){
                    $scope.modifyProState = "运行中";
                }else if (data.modifyProState=="2"){
                    $scope.modifyProState = "已关闭";
                }else if (data.modifyProState=="3"){
                    $scope.modifyProState = "已完结";
                }else if (data.modifyProState=="4"){
                    $scope.modifyProState = "已暂停";
                }
            }

            if (data.modifyProLv!=undefined){
                $scope.proLv = true;
                if (data.oldModifyProLv=="1"){
                    $scope.oldModifyProLv = "低";
                }else if (data.oldModifyProLv=="2"){
                    $scope.oldModifyProLv = "中";
                }else if (data.oldModifyProLv=="3"){
                    $scope.oldModifyProLv = "高";
                }

                if (data.modifyProLv=="1"){
                    $scope.modifyProLv = "低";
                }else if (data.modifyProLv=="2"){
                    $scope.modifyProLv = "中";
                }else if (data.modifyProLv=="3"){
                    $scope.modifyProLv = "高";
                }
            }

            if (data.modifyUrgency!=undefined){
                $scope.urgency = true;
                if (data.oldModifyUrgency=="1"){
                    $scope.oldModifyUrgency = "紧急";
                }else if (data.oldModifyUrgency=="0"){
                    $scope.oldModifyUrgency = "不紧急";
                }

                if (data.modifyUrgency=="1"){
                    $scope.modifyUrgency = "紧急";
                }else if (data.modifyUrgency=="0"){
                    $scope.modifyUrgency = "不紧急";
                }
            }

            if (data.modifyImportance!=undefined){
                $scope.importance = true;
                if (data.modifyImportance=="0"){
                    $scope.modifyImportance = "一般";
                }else if (data.modifyImportance=="1"){
                    $scope.modifyImportance = "重要";
                }else{
                    $scope.modifyImportance = "战略";
                }

                if (data.oldModifyImportance=="0"){
                    $scope.oldModifyImportance = "一般";
                }else if (data.oldModifyImportance=="1"){
                    $scope.oldModifyImportance = "重要";
                }else{
                    $scope.oldModifyImportance = "战略";
                }
            }

            if (data.proSignDate!=undefined){
                $scope.signDate = true;
                $scope.oldProSignDate = data.oldProSignDate;
                $scope.proSignDate = data.proSignDate;
            }

            if (data.proHkDate!=undefined){
                $scope.hkDate = true;
                $scope.oldProHkDate = data.oldProHkDate;
                $scope.proHkDate = data.proHkDate;
            }

            if (data.modifyEndTime!=undefined){
                $scope.proTime = true;
                $scope.modifyBeginTime = data.modifyBeginTime;
                $scope.modifyEndTime = data.modifyEndTime;

                $scope.oldModifyBeginTime = data.oldModifyBeginTime;
                $scope.oldModifyEndTime = data.oldModifyEndTime;
            }

            if (data.selMoney!=undefined){
                $scope.smoney = true;
                $scope.oldSelMoney = data.oldSelMoney;
                $scope.selMoney = data.selMoney;
            }

            if (data.ysMoney!=undefined){
                $scope.ymoney = true;
                $scope.oldYsMoney = data.oldYsMoney;
                $scope.ysMoney = data.ysMoney;
            }

            if (data.modifyDeptId!=undefined){
                $scope.deptId = true;
                $scope.oldModifyDeptId = data.oldModifyDeptId;
                $scope.modifyDeptId = data.modifyDeptId;
            }

            if (data.modifyDeptId!=undefined){
                $scope.proArea = true;
                $scope.oldModifyArea = data.oldModifyArea;
                $scope.modifyArea = data.modifyArea;
            }

            if (data.modifyCusId!=undefined){
                $scope.cusId = true;
                $scope.oldModifyCusId = data.oldModifyCusName;
                $scope.modifyCusId = data.modifyCusName;
            }

            if (data.modifyPdLine!=undefined){
                $scope.pdLine = true;
                $scope.oldModifyPdLine = data.oldModifyPdLine;
                $scope.modifyPdLine = data.modifyPdLine;
            }

            if (data.modifyCompare!=undefined){
                $scope.compare = true;
                if (data.oldModifyCompare==0){
                    $scope.oldModifyCompare = "否";
                }else{
                    $scope.oldModifyCompare = "是";
                }
                if (data.modifyCompare==0){
                    $scope.modifyCompare = "否";
                }else{
                    $scope.modifyCompare = "是";
                }
            }

            if (data.modifyClue!=undefined){
                $scope.clues = true;
                $scope.oldModifyClue = data.oldModifyClue;
                $scope.modifyClue = data.modifyClue;
            }

            if (data.modifyCompetitor!=undefined){
                $scope.ompetitor = true;
                $scope.oldModifyCompetitor = data.oldModifyCompetitor;
                $scope.modifyCompetitor = data.modifyCompetitor;
            }

            if (data.modifyCusPolicy!=undefined){
                $scope.cusPolicy = true;
                $scope.oldModifyCusPolicy = data.oldModifyCusPolicy;
                $scope.modifyCusPolicy = data.modifyCusPolicy;
            }
            $scope.changeMessage = data.changeMessage;
            $scope.optionMsg = data.opinionMsg;
            $scope.proId = data.projId;
            $scope.id = data.id;
        });
    }
</script>